import Vue from 'vue'
import store from './store';
import App from './App.vue'
import i18n from './i18n'
import router from '@/router/router'
import '@/assets/remNew.js'
import BigDecimal from 'js-big-decimal'
import './utils/directive.js';

Vue.prototype.$bigDecimal = BigDecimal //全局注册，使用方法为:this.$bigDecimal
// 加 this.$bigDecimal.add(1, 2)
// 减 this.$bigDecimal.subtract(1, 2)
// 乘 this.$bigDecimal.multiply(1, 2)
// 除 this.$bigDecimal.divide(1, 2)
// 比较大小 this.$bigDecimal.compare(1, 2)

Vue.config.productionTip = false
Vue.prototype.TITLE = process.env.VUE_APP_TITLE
Vue.prototype.H5ZZ = process.env.VUE_APP_H5ZZ
Vue.prototype.APPZZ = process.env.VUE_APP_APPZZ
import { Form, Field, Cell, CellGroup, Button, Row, Col, NavBar,
  RadioGroup, Radio,
  Grid, GridItem,
    List,
  Tag,
  tabs,
  Tab,
  DropdownItem,
  DropdownMenu,
  ActionSheet,
  Divider,
  Toast, Loading, Dialog, Tabbar, TabbarItem, NoticeBar, Icon, Switch, Slider, Checkbox, Search } from 'vant'
Vue.use(Form).use(Field).use(Cell).use(CellGroup).use(Button).use(Row).use(Col)
.use(NavBar).use(Toast).use(Loading).use(Dialog).use(Tabbar)
.use(TabbarItem).use(NoticeBar).use(Icon).use(Switch).use(Slider).use(Checkbox)
.use(Search)
.use(Radio)
    .use(List)
    .use(Grid)
    .use(GridItem)
    .use(Tag)
    .use(tabs)
    .use(Tab)
    .use(DropdownItem)
    .use(DropdownMenu)
    .use(ActionSheet)
    .use(Divider)
.use(RadioGroup);



window.eventBus = new Vue()
// import FastClick from 'fastclick'
// FastClick.attach(document.body);

import VueClipboard from 'vue-clipboard2'
VueClipboard.config.autoSetContainer = true
Vue.use(VueClipboard);


new Vue({
  //  Router:Router,
  beforeCreate() {
    Vue.prototype.$bus = this;
  },
  store: store,
  i18n,
  router: router,
  render: h => h(App),
}).$mount('#app')
